#include "stdafx.h"
#include "Director.h"

static Director* shared = nullptr;

Director::Director()
	: _mode(kTCP)
	, _protocol(new Protocol())
{
}

Director* Director::getInstance()
{
	if (shared == nullptr)
	{
		shared = new Director();
		return shared;
	}
	return shared;
}

void Director::release()
{
	if (shared != nullptr)
	{
		delete shared;
		shared = nullptr;
	}
}

Director::~Director()
{
}
